package com.huiminpay.paymentagent.api;

import com.huiminpay.common.cache.domain.BusinessException;
import com.huiminpay.paymentagent.api.conf.AliConfigParam;
import com.huiminpay.paymentagent.api.dto.AlipayBean;
import com.huiminpay.paymentagent.api.dto.PaymentResponseDTO;

public interface PayChannelAgentService {
    /**
     * 对接支付宝支付接口
     * @param aliConfigParam  支付渠道参数
     * @param alipayBean        业务参数
     * @return PaymentResponseDTO<String>  支付宝响应的表单
     * @throws BusinessException
     */
    PaymentResponseDTO<String> createPayOrderByAliWAP(AliConfigParam aliConfigParam, AlipayBean alipayBean) throws BusinessException;

    /**
     * 对接支付宝查询接口
     * @param aliConfigParam   支付渠道参数
     * @param outTradeNo  商户订单号
     * @return
     * @throws BusinessException
     */
    PaymentResponseDTO  queryPayOrderByAli(AliConfigParam aliConfigParam,String outTradeNo) throws BusinessException;
}
